package com.gym.myshop.dao;

import com.gym.myshop.entity.Address;

import java.util.List;

/**
 *@author ming
 *2021/11/7
 *description:地址
 */
public interface AddressDao {

    //全部地址显示
    List<Address> getUserAddressByUid(int uid);

    //删除地址
    int delAddress(Integer aid);

    //添加地址
    int insertAddress(Address a);

    //修改地址
    int updateAddress(Address a);

    //修改非默认地址为0 astate = 0
    int setAllAddress(Integer aid, Integer uid);

    //修改默认地址为1 astate = 1
    int setAddressDefault(Integer aid);
}
